package com.hxalex.simulationhandle.accessbilityService.command.wifi;

import com.hxalex.simulationhandle.accessbilityService.command.base.BaseCommand;
import com.hxalex.simulationhandle.accessbilityService.manger.WifiManger;
import com.hxalex.simulationhandle.accessbilityService.receiver.base.BaseReceiver;
import com.hxalex.simulationhandle.accessbilityService.receiver.wifi.CheckWifiInMainReceiver;

/**
 * Created by hx_Alex on 2018/5/26.
 */

public class CheckWifiInMainCommand extends BaseCommand {

    private String  text;

    public CheckWifiInMainCommand(WifiManger wifiManger, BaseReceiver receiver) {
        super(wifiManger, receiver);
    }


    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public void execute() {
        CheckWifiInMainReceiver receiver = (CheckWifiInMainReceiver) this.receiver;
        receiver.setText(text);
        this.receiver.doSomething();
    }
}
